package order

import (
	"context"
	"git.900sui.cn/kc/rpcinterface/client"
)

type Pingpp struct {
	client.Baseclient
}

//初始化
func (p *Pingpp) Init() *Pingpp {
	p.ServiceName = "rpc_order"
	p.ServicePath = "Pingpp"
	return p
}

//支付成功回调时ping++充值
func (p *Pingpp) PaySuc(ctx context.Context, orderSn *string, reply *bool) (err error) {
	return p.Call(ctx, "PaySuc", orderSn, reply)
}

//查询处理充值结果
func (p *Pingpp)HandlePayResult(ctx context.Context, args string, reply *bool)error {
	return p.Call(ctx, "HandlePayResult", args, reply)
}